import {ComponentOption} from "./ComponentOption.ts";
import image_base64 from "../../views/drag_edit/image_base64.ts";

/**
 * 所有的模板
 */
let option1: any = {
    type: 'image',
    w: 400, h: 250,
    option: {url: image_base64["ecu_1.png"]},
    anchors: [{"px":0.3213728549141966,"py":0.7435897435897436},{"px":0.34321372854914195,"py":0.7512820512820513},{"px":0.36349453978159124,"py":0.7615384615384615},{"px":0.38533541341653665,"py":0.7666666666666667},{"px":0.46957878315132606,"py":0.7871794871794872},{"px":0.5787831513260531,"py":0.8282051282051283},{"px":0.5772230889235569,"py":0.7666666666666667}]
}
let option2: any = {
    type: 'image',
    w: 300, h: 300,
    option: {url: image_base64["hil_1.png"]},
    anchors: [{"px":0.46952595936794583,"py":0.15862068965517243},{"px":0.5665914221218962,"py":0.15632183908045977}]
}
const obj_map: any = [
    {templateId: 'template1', name: '模板1', componentType: "image", option: option1},
    {templateId: 'template2', name: '模板2', componentType: "image", option: option2},
]
export default obj_map
